package com.yp.shopping.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 获取时间
 */
public class DateU {


    public static String getNow() {

        Date now  = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-hh-mm-ss");

        return dateFormat.format(now);
    }


}
